<div class="page-body">

    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">书包借出记录</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <div class="table-toolbar">
                        <form method="get" action="{:U('log')}" class="form-inline" role="form">
                            <div class="form-group">
                                <span class="input-icon" style="width: 200px;">
                                    <input type="text" class="form-control input-sm" placeholder="书包编号"
                                           name="bag_card">
                                    <i class="glyphicon glyphicon-search blue"></i>
                                </span>
                                <span class="input-icon" style="width: 200px;">
                                    <input type="text" class="form-control input-sm" placeholder="图书条码"
                                           name="tm">
                                    <i class="glyphicon glyphicon-search blue"></i>
                                </span>
                                <button type="submit" class="btn btn-info">搜索</button>


                            </div>
                        </form>
                    </div>
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>
                                ID
                            </th>
                            <th>
                                学生名称
                            </th>
                            <th>
                                书包编号
                            </th>
                            <th>
                                包内图书
                            </th>
                            <th>
                                图书条码
                            </th>
                            <th>
                                借出时间
                            </th>
                        </tr>
                        </thead>

                        <tbody>
                        <foreach name="data" item="v">
                            <tr>
                                <td>
                                    {$v.id}
                                </td>
                                <td>
                                    {$v.child_name}
                                </td>
                                <td>
                                    {$v.bag_card}
                                </td>
                                <td>
                                    {$v.book_names}
                                </td>
                                <td>
                                    {$v.book_tm}
                                </td>
                                <td>
                                    {$v.created_at|date="Y-m-d H:i:s",###}
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>